package com.storlead.shiro.service;

import com.storlead.shiro.model.UserInfo;
import com.storlead.shiro.util.Result;

/**
 * @Author: Timo
 * @Date: 2019/2/13 11:15
 * @Description: 接口用途：
 */
public interface UserInfoService {

    UserInfo findUser(Integer userId);

    UserInfo findUser(String userName);

    UserInfo findUser(String userName, String passWord);

    /**
     * @Author: timo
     * @Date: 2019/2/13 12:16
     * @Description: 登录
     *
     * @param userInfo 用户信息
     */
    Result login(UserInfo userInfo);

    void logout();
}
